<?php

namespace Modules\Common\Models\Validation;


/**
 *@property int $id
 *@property string $mobile
 *@property string $sign_name
 *@property string $template_code
 *@property string $template_param
 *@property int $status
 *@property string $created_at
 *@property string $updated_at
 *@property string $deleted_at
 */
trait SmsValidation 
{


    public function createRules()
    {
         return [
            'rules' => [
                'mobile'=>'between:0,11|mobile',
                'sign_name'=>'between:0,255',
                'template_code'=>'between:0,32',
                'template_param'=>'between:0,255',
                'status'=>'integer|in:0,1,2',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }

    public function updateRules()
    {
         return [
            'rules' => [
                'mobile'=>'between:0, 11|mobile',
                'sign_name'=>'between:0, 255',
                'template_code'=>'between:0, 32',
                'template_param'=>'between:0, 255',
                'status'=>'integer|in:0,1,2',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }


}
